const app = getApp();
Component({
    options: {
        addGlobalClass: true,
    },

    properties: {
        type: {
            type: String,
            value: 'default'
        }
    },
    data: {
        iPhoneX: app.globalData.iPhoneX,
    },

    methods: {
        //返回首页
        backHome: function () {
            wx.switchTab({
                url: '/pages/index/index',
            })
        },
    }
})
